import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/reconciliation',
  component: Layout,
  name: 'reconciliation',
  meta: {title: '对账管理', icon: 'icon'},
  children: [
    {
      path: 'uploadSalesFinance',
      component: _import('reconciliation/uploadSalesFinance'),
      name: 'SalesFinanceAdd',
      meta: {title: '新增对账记录', icon: 'bills'},
      hidden: true,
      props: true
    },
    {
      path: 'rebuild',
      component: _import('reconciliation/uploadSalesFinance'),
      name: 'SalesFinanceRebuild',
      meta: {title: '重新对账', icon: 'bills'},
      hidden: true,
      props: true
    },
    {
      path: 'reconView/:statisticsNo/:time',
      component: _import('reconciliation/conciliationList'),
      name: 'SalesFinanceView',
      meta: {
        title: '查看对账单', icon: 'bills',
        buttons: {
          detail: { label: '查看详情', enabled: true }
        }
      },
      hidden: true,
      props: true
    }
  ]
}
